<?php
namespace Home\Model;
use Think\Model\RelationModel;
class StupracModel extends RelationModel{ 
protected $_validate=array();
protected $_auto=array();
public function getdata(){
	return data("ymdhis");
}  
 protected $_link = array(  
 	'practices'=>array(     
        'mapping_type'  => self::BELONGS_TO,   
        'class_name'    => 'practices',  
        'foreign_key'   => 'ydq_pid',  
        'mapping_name'  => 'ydq_practices',
        'mapping_fields' => 'ydq_name,ydq_groupname,ydq_puser,ydq_pdate,ydq_ptime,ydq_place,ydq_intro,ydq_pfile,ydq_matters',
        'as_fields'=>'ydq_name,ydq_groupname,ydq_puser,ydq_pdate,ydq_ptime,ydq_place,ydq_intro,ydq_pfile,ydq_matters')
 	);

}